//
//  Travel.m
//  WildDonkey
//
//  Created by 佟小波 on 15/3/27.
//  Copyright (c) 2015年 lanou. All rights reserved.
//

#import "Travel.h"

@implementation Travel

- (void)dealloc
{
    [_name release];
    [_img release];
    [_desc release];
    [_issue release];
    [_mtid release];
    [super dealloc];
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    //key 在 owner 里面
    //    if (key isEqualToString:@"owner") {
    ////        [self setValue:[value objectForKey:@"name"]forKey:@"name"];
    //    }
}


-(void)setValue:(id)value forKey:(NSString *)key
{
    [super setValue:value forKey:key];//该怎么赋值还怎么赋值
    //多了一个判断,如果是 image ,就下载图片
    //    if ([key isEqualToString:@"img"]) {
    //        [ImageDownloader imageDownloaderWithURLString:value delegate:self tag:0];
    //    }
}

@end
